package com.nidu.demo.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 批量新增命令
 *
 * @author auto
 */
@Data
@Schema(description = "批量新增命令")
@EqualsAndHashCode(callSuper = true)
public class BatchAddCmd extends BaseCmd {

    /**
     * 新增json字符串
     */
    @NotNull(message = "新增json字符串不能为空")
    @Schema(description = "新增json字符串", example = "[{ name: 'New post!', body: 'Some stuff..' }]")
    private String create;

} 